package com.bbkb.quartz.task;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.text.MessageFormat;

/**
 * 功能:
 * 作者:沈飞超
 * 日期:2021-06-17 11:58
 * 描述:
 */
@Component("ryTask")
public class RyTask {

    public void ryMultipleParams(String s, Boolean b, Long l, Double d, Integer i) {
        System.out.println(MessageFormat.format("执行多参方法： 字符串类型{0}，布尔类型{1}，长整型{2}，浮点型{3}，整形{4}",
                s,
                b,
                l,
                d,
                i));
    }

    public void ryParams(String params) {

        System.out.println("执行有参方法：" + params);
    }

    public void ryNoParams() {
//        SysUserDTO sysUser = sysUserRemoting.getByUserName("469981346@qq.com");
        System.out.println("执行无参方法");
    }
}
